package com.example.cunion.mapper;

import com.example.cunion.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【coupon(优惠券表)】的数据库操作Mapper
* @createDate 2023-10-22 23:18:44
* @Entity com.example.cunion.entity.Coupon
*/
public interface CouponMapper extends BaseMapper<Coupon> {

    List<HashMap> searchUnCheckCouponByPage(HashMap map);

    Integer agreeCoupon(String id);

    Integer rejectCoupon(String id);

    Integer addCoupon(HashMap map);

    List<HashMap> searchBusinessCheckByPage(HashMap map);

    Integer updateCouponStatus(HashMap map);

}




